package com.algorithm.cn.recursion;

/**
 * 
 * @author wangzonghui
 * @date 2021-01-07 22:15:35
 * @Description: 递归功能
 */
public class RecursionTest {

	public static void main(String[] args) {
		test(4);
	}
	
	public static void test(int n) {
		if(n>2) {
			test(n-1);
		}
		System.out.println("n="+n);
	}
}
